import React from 'react';
import {Spin} from 'antd';
//import styles from './ContentWrapper.less';

export default class ContentWrapper extends React.PureComponent {

  render() {
    const {loading = false, children} = this.props;

    return (
      <Spin spinning={loading}>
        {children}
      </Spin>
    );
  }
}
